package org.example.spring.annotions;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 注册成为组件
 *
 * @author changxinglong
 * @version 1.0.0
 * @since 2024/10/29
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Component {
    /**
     *当前要定义的Bean起一个名字
     */
    String value() default "";

}
